package com.hex.ds.hdtp.core.app.metadata.dto.request;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.hex.ds.hdtp.core.inf.metadata.po.SourceConfInfoPo;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @Package: com.hex.ds.hdtp.core.app.metadata.dto.request
 * @ClassName SourceInfoExcelDto
 * @Description: 数据源Excel交互实体类
 * @Author: Liang Fuhao
 * @Date 2023-12-15 14:46
 * @Version v1.0
 **/
@Data
@Accessors(chain = true)
@TableName(value = "tm_source_info")
public class SourceInfoExcelDto implements Serializable {
    @TableId(value = "pk_id",type = IdType.ASSIGN_UUID)
    private String pkId;

    @TableField(value = "cluster_code")
    private String clusterCode;

    @Excel(name = "数据源编码")
    @TableField(value = "source_code")
    private String sourceCode;

    @Excel(name = "数据源名称")
    @TableField(value = "source_name")
    private String sourceName;

    @Excel(name = "数据源类型")
    @TableField(value = "source_type")
    private String sourceType;

    @TableField(value = "source_version")
    private String sourceVersion;

    @Excel(name = "数据的编码")
    @TableField(value = "source_encoding")
    private String sourceEncoding;

    @TableField(value = "source_tag")
    private String sourceTag;

    @TableField(value = "source_des")
    private String sourceDes;

    @Excel(name = "数据源属性")
    @TableField(value = "source_attribute")
    private String sourceAttribute;

    @TableField(value = "data_type")
    private String dataType;

    @TableField(value = "conf_from")
    private String confFrom;

    @TableField(value = "app_code")
    private String appCode;

    @Excel(name = "数据源状态")
    @TableField(value = "status", fill = FieldFill.INSERT)
    private String status;

    @TableField(value = "ha_status", fill = FieldFill.INSERT)
    private String haStatus;

    @TableField(value = "error_msg")
    private String errorMsg;

    @TableField(value = "service_code")
    private String serviceCode;

    @TableField(value = "service_name")
    private String serviceName;

    @TableField(value = "root_path")
    private String rootPath;

    @TableField(value = "log_file")
    private String logFile;

    @TableField(value = "log_offset")
    private long logOffset;

    @TableField(value = "crt_user", fill = FieldFill.INSERT)
    private String crtUser;

    @Excel(name = "创建人名称")
    @TableField(value = "crt_user_name", fill = FieldFill.INSERT)
    private String crtUserName;

    @Excel(name = "创建时间")
    @TableField(value = "crt_ts", fill = FieldFill.INSERT)
    private String crtTs;

    @TableField(value = "up_user", fill = FieldFill.INSERT_UPDATE)
    private String upUser;

    @Excel(name = "修改人名称")
    @TableField(value = "up_user_name", fill = FieldFill.INSERT_UPDATE)
    private String upUserName;

    @Excel(name = "修改时间")
    @TableField(value = "up_ts", fill = FieldFill.INSERT_UPDATE)
    private String upTs;

    @TableField(exist = false)
    private String jdbcUrl;

    @TableField(exist = false)
    private String authAppCode;

    @TableField(exist = false)
    private List<SourceConfInfoPo> confInfoList;

    @Excel(name = "连接信息")
    private String confTemplateList;
}

